package com.example.demo.dao;

import com.example.demo.dto.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @ClassName SysUserMapper
 * @Desecription TODO 1.2新增
 * @Author zzw
 * @Date 2021/4/7 16:06
 * @Version 1.2
 **/
@Mapper
@Repository
public interface SysUserMapper {
    @Select("SELECT * FROM sys_user WHERE id = #{id}")
    SysUser selectById(Integer id);

    @Select("SELECT * FROM sys_user WHERE name = #{name}")
    SysUser selectByName(String name);

}
